package com.itshidu.game.mapper;

import com.itshidu.game.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Jack.Xia
 * @since 2019-12-01
 */
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from g_user where username=#{username}")
    User findByUserName(@Param("username") String username);
}
